#define _CRT_SECURE_NO_WARNINGS 1
#include"heap.h"
int main()
{
	int arr[10] = { 1,3,5,8,9,6,4,2 };
	Heap hp;

	HpInit(&hp);
	int i = 0;
	for (i = 0; i < 8; i++)
	{
		HpPush(&hp, arr[i]);

	}
	
	while (!HpEmpty(&hp))
	{
		printf("%d ", HpTop(&hp));
		HpPop(&hp);

	}
	HpDestroy(&hp);

}